#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#

# -*- mode: python; -*-

import os
import sys

Import('AgentEnv')
env = AgentEnv.Clone()

SandeshGenFiles = env.SandeshGenCpp('cfg.sandesh')
SandeshGenSrcs = env.ExtractCpp(SandeshGenFiles)
sandesh_objs = AgentEnv.BuildExceptionCppObj(env, SandeshGenSrcs)

except_files = [ 'cfg_init.cc' ]
except_objs = AgentEnv.BuildExceptionCcObj(env, except_files)

libcfg = env.Library('cfg',
                     except_objs +
                     sandesh_objs +
                     ['cfg_filter.cc',
                      'cfg_mirror.cc',
                      ])
